home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1997 May / PC Plus Super CD Issue 127 (May 1997).iso / handson / handson.exe / THING.CLASS (.txt) < prev    next >
Encoding:
Java Class File  |  1997-02-07  |  859 b   |  26 lines

  1. class Thing {
  2.    private String name;
  3.    private String description;
  4.  
  5.    Thing(String aName, String aDescription) {
  6.       this.name = aName;
  7.       this.description = aDescription;
  8.    }
  9.  
  10.    String getName() {
  11.       return this.name;
  12.    }
  13.  
  14.    void setName(String aName) {
  15.       this.name = aName;
  16.    }
  17.  
  18.    String getDescription() {
  19.       return this.description;
  20.    }
  21.  
  22.    void setDescription(String aDescription) {
  23.       this.description = aDescription;
  24.    }
  25. }
  26.